window.onload=function(){
	var oGraphicInfo=document.getElementsByClassName("graphicInfo");
	var oGraphicTitle=document.getElementById("graphicTitle");
	var oA=oGraphicTitle.getElementsByTagName("a");	
	for(var i=0;i<oA.length;i++){
		oA[i].index=i;
		oA[i].onclick=function() {
			for(var j=0;j<oGraphicInfo.length;j++){
				oGraphicInfo[j].style.display="none";
				oA[j].className="";
			}
			this.className="active";
			oGraphicInfo[this.index].style.display="block"
		}
	}
	var oPurchaseNum01=document.getElementById("purchaseNum01");
	var oReduction01=oPurchaseNum01.getElementsByClassName("Reduction")[0];
	var oAdd01=oPurchaseNum01.getElementsByClassName("add")[0];
	var oN=oPurchaseNum01.getElementsByClassName("sumNum")[0];
	var n;
    oReduction01.onclick=function(){
    n=oN.value;
      n--;
      if(n<0){
       n=0;
      }
      oN.value=n;
    }
    oAdd01.onclick=function(){
    	n=oN.value;
    	n++;
    	oN.value=n
    }
   var swiper1 = new Swiper('.swiper1', {
   	    loop:true,
        pagination: '.swiper-pagination1',
        paginationClickable: true,
        autoplay:2500
    });
}


